<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
    <%@include file="../../../static/common/common.jsp" %>
    <script src="/static/js/dictionary.js"></script>
    <script src="/static/js/dictionaryItem.js"></script>
</head>
<!--非常关键-->
<jsp:include page="/static/style/loader.jsp"></jsp:include>
<body>

<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'west',title:'字典目录',split:true" style="width:600px;">
        <table id="dictionary_datagrid"></table>
    </div>

    <div data-options="region:'center',title:'字典目录明细'" style="padding:5px;background:#eee;">
        <table id="dictionaryItem_datagrid"></table>
    </div>
</div>


<div id="dic_btns">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增</a>
        <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a  class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
       data-cmd="del">删除</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
</div>
<div id="save_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
</div>

<div id="dictionaryItem_btns">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-item-cmd="add">新增</a>
        <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-item-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
       data-item-cmd="del">删除</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-item-cmd="reload">刷新</a>
</div>
<div id="dictionaryItem_save_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-item-cmd="save">保存</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-item-cmd="cancel">取消</a>
</div>

<div id="dic_dialog">
    <form id="dic_form" method="post">
        <input id="dicId" type="hidden" name="id">
        <table align="center" style="margin-top: 15px" cellspacing="10">
            <tr>
                <td>字典目录编码:</td>
                <td><input class="easyui-textbox" name="sn"></td>
            </tr>
            <tr>
                <td>字典目录名称:</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>字典目录介绍:</td>
                <td><input class="easyui-textbox" name="intro">
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="dicItem_dialog">
    <form id="dicItem_form" method="post">
        <input id="dicItemId" type="hidden" name="id">
        <table align="center" style="margin-top: 15px" cellspacing="10">
            <tr>
                <td>字典明细名称:</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr id="dictionaryId">
                <td>字典目录名称:</td>
                <td><input class="easyui-combobox" name="dictionary.id" id="dictionaryName-combobox"
                           data-options="url:'/dictionary/selectAll.do',valueField:'id',textField:'name',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>字典明细介绍:</td>
                <td><input class="easyui-textbox" name="intro">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
